{EmpAddSrv} = require "./EmpAddSrv"
fsAsync = require "fsAsync"
{SysEditSrv} = require "./SysEditSrv"

SupperClzz = EmpAddSrv
exports.EmpEditSrv = new Class
  Extends: SupperClzz
  Implements:[SysEditSrv]
  "@confirmButClk":{isTran:true,comment:"点击确定按钮"}
  confirmButClk: (reqOpt,entry,keyArr,returning,tab)->
    t = this
    entry.picture = t.uid2buf entry.picture
    rltSet = yield t.update reqOpt,entry,keyArr,returning,tab
    yield fsAsync.unlinkAsync entry.picture if entry.picture
    rltSet